package com.dingwen.treasure.task.quartz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 定时任务服务 //@EnableJpaAuditing TODO
 *
 * @author dingwen
 * @date 2022/03/31
 */

@SpringBootApplication(scanBasePackages = {"com.dingwen.treasure"})
@EnableJpaRepositories(basePackages = "com.dingwen.treasure.jpa.dao")
@EntityScan(basePackages = "com.dingwen.treasure.model.entity.jpa")
@EnableFeignClients
public class TaskApplication {
    public static void main(String[] args) {
        SpringApplication.run(TaskApplication.class, args);
        System.out.println(
                        "====================================================\n" +
                        "====================================================\n" +
                        "====================================================\n" +
                        "====================================================\n" +
                        "🌿🌿🌿🌿Treasure task quartz successfully🌿🌿🌿🌿 \n"+
                        "====================================================\n" +
                        "====================================================\n" +
                        "====================================================\n" +
                        "====================================================\n"
        );
    }
}
